const express = require("express")
const expressJoi =require("@escook/express-joi")
const router = express()
const {reg_userinfo_schema,reg_updatepwd_schema,reg_updatePic_schema} = require("../usershem")
//router 处理函数模块分离
const routerHander = require("../router_hander")

router.get("/getuserinfo",routerHander.getuserinfo)

router.post("/userinfo",expressJoi(reg_userinfo_schema),routerHander.userInfo)

router.post("/updatepwd",expressJoi(reg_updatepwd_schema),routerHander.updatepwd)

router.post("/userPic",expressJoi(reg_updatePic_schema),routerHander.userPic)
module.exports=router